package example;

interface Sweet{
    int i=0;
     void sweety(); //口感很甜的实现方法
    //void func(){}
}

public class Plant {
    int i;
    public Plant(int i){
        System.out.println("Plant constructor");
    }
}

class Fruit extends Plant{
    public Fruit(int i){
        super(11);
        System.out.println("Fruit constructor");
    }
}

class Apple extends Fruit implements Sweet{
    public Apple(int i){
        super(45);
        System.out.println("Apple constructor");
    }
    public void sweety(){
        System.out.println("Apple sweet.");
    }



    public static void main(String[] args) {
        Sweet s;
        new Apple(60);
        //s=a;
        //s.sweety();

    }


}